package com.itheima.shengxiao;

public class Demo01 {

    public static void main(String[] args) {
        Ganfanren ganfanren = new Ganfanren();
        Thread t1 = new Thread(ganfanren);
        t1.setName("干饭人");
        Chuzi chuzi = new Chuzi();
        Thread t2 = new Thread(chuzi);
        t2.setName("厨子");
        t1.start();
        t2.start();


    }
}
